const nodeIp = require('ip'); //前端参数验证

let num = '3053484230'; //数据库ip:182.0.120.198

let newIp = nodeIp.fromLong(num); //生成的新ip：结果182.0.120.198

let xxx = nodeIp.mask(newIp, '0.0.0.255'); //不知道这个是做什么

console.log('xxx', xxx); //0.0.0.198

let nnn = nodeIp.toLong(xxx); //生成的新ip：结果182.0.120.198

console.log('nnn', nnn)